// 判断数组内的数，是否都满足需求

let every = function(arr, fun){
    let resule = true 
    for(let value of arr){
        if(!resule){
            break;
        }
        if(!fun(value)){
            resule = false
        }
    }
    return resule
}

let arr = [11,13,15,16]
console.log(every(arr,(item)=>{ return item > 10}));